﻿using FanaticRock.Core.Helpers;

namespace FanaticRock.Core.Extensions
{
    public static class UriExtension
    {
        public static Uri ToUri(this string str)
        {
            return UriHelper.GetUri(str);
        }
        
        ///<summary>如果本地找不到会返回 Null</summary>
        public static Uri ToLocalUri(this string str)
        {
            return UriHelper.GetLocalUri(str);
        }
    }
}
